package com.tangyuan.feignapis.video;

import com.tangyuan.model.VideoHot;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(name ="service-video",contextId = "feignApi-video-hot")
public interface IVideoHotFeignClient{

    @GetMapping("/feignApi/videoHot/selectByOrderNo/{outTradeNo}")
    VideoHot selectByOrderNo(@PathVariable String outTradeNo);

    @PostMapping("/feignApi/videoHot/updateById")
    void updateById(@RequestBody VideoHot videoHot);

    @PostMapping("/feignApi/videoHot/browseHot")
    void browseHot(@RequestBody Long movieId);

}
